<#--
<textarea name="textarea"></textarea>
-->
<#macro editor
	name value="" height="230"
	fullPage="false" toolbarSet="My"
	label="" noHeight="false" required="false" colspan="" width="100" help="" helpPosition="2" colon=":" hasColon="true"
	maxlength="65535"
	onclick="" ondblclick="" onmousedown="" onmouseup="" onmouseover="" onmousemove="" onmouseout="" onfocus="" onblur="" onkeypress="" onkeydown="" onkeyup="" onselect="" onchange=""
	>
<#include "control.ftl"/><#rt/>
<style>
.ke-container{
	width:100%!important;
}
.ke-dialog{
	top:0px!important;
}
</style>
<textarea id="${name}" name="${name}">${value}</textarea> 
<script type="text/javascript">
 $(function(){
	 KindEditor.ready(function(K) {
        K.create('textarea[name="${name}"]', {
        	autoHeightMode : true,
            afterCreate : function() {
                this.loadPlugin('autoheight');
            },
            uploadJson:'${base+appBase}/fck/kindUpload.do?Type=Image',
            uploadVideoJson:'${base+appBase}/fck/kindUpload.do?Type=Media',
            allowFileManager : true,
            allowImageUpload : true ,
            afterBlur: function () { this.sync();},
            height:'250px'
        });
    });
	 
});
</script>
<#include "control-close.ftl"/><#rt/>
</#macro>